package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Orders;
import com.itheima.dto.OrdersDto;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Tang
 * @date 2023/1/12
 */
public interface OrdersService extends IService<Orders> {
    /**
     * 下单
     * @param orders
     */
    @Transactional
    void submit(Orders orders);
    @Transactional
    Page<OrdersDto> pageUser(int page, int pageSize,String name);
}
